package com.blinddate.dao.impl;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.blinddate.orm.BdIncome;

public class IncomeDAO extends HibernateDaoSupport implements
		com.blinddate.dao.IncomeDAO {

	@Override
	public List<BdIncome> getAllIncome() {
		List<BdIncome> incomes = null;
		try{
			String queryCondition = "from BdIncome";
			incomes = (List<BdIncome>)this.getHibernateTemplate().find(queryCondition);
		}catch(Exception e){
			incomes = null;
			e.printStackTrace();
		}
		return incomes;
	}

}
